/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Nursingand Custodial Care Facilities Provider Codes Member3</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see org.hl7.v3.V3Package#getNursingandCustodialCareFacilitiesProviderCodesMember3()
 * @model extendedMetaData="name='NursingandCustodialCareFacilitiesProviderCodes_._member_._3'"
 * @generated
 */
public enum NursingandCustodialCareFacilitiesProviderCodesMember3 implements Enumerator {
	/**
	 * The '<em><b>310000000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_310000000X_VALUE
	 * @generated
	 * @ordered
	 */
	_310000000X(0, "_310000000X", "310000000X"),

	/**
	 * The '<em><b>311500000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_311500000X_VALUE
	 * @generated
	 * @ordered
	 */
	_311500000X(1, "_311500000X", "311500000X"),

	/**
	 * The '<em><b>317400000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_317400000X_VALUE
	 * @generated
	 * @ordered
	 */
	_317400000X(2, "_317400000X", "317400000X"),

	/**
	 * The '<em><b>315D00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_315D00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_315D00000X(3, "_315D00000X", "315D00000X"),

	/**
	 * The '<em><b>315P00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_315P00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_315P00000X(4, "_315P00000X", "315P00000X"),

	/**
	 * The '<em><b>310500000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_310500000X_VALUE
	 * @generated
	 * @ordered
	 */
	_310500000X(5, "_310500000X", "310500000X"),

	/**
	 * The '<em><b>313M00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_313M00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_313M00000X(6, "_313M00000X", "313M00000X");

	/**
	 * The '<em><b>310000000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>310000000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_310000000X
	 * @model literal="310000000X"
	 * @generated
	 * @ordered
	 */
	public static final int _310000000X_VALUE = 0;

	/**
	 * The '<em><b>311500000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>311500000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_311500000X
	 * @model literal="311500000X"
	 * @generated
	 * @ordered
	 */
	public static final int _311500000X_VALUE = 1;

	/**
	 * The '<em><b>317400000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>317400000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_317400000X
	 * @model literal="317400000X"
	 * @generated
	 * @ordered
	 */
	public static final int _317400000X_VALUE = 2;

	/**
	 * The '<em><b>315D00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>315D00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_315D00000X
	 * @model literal="315D00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _315D00000X_VALUE = 3;

	/**
	 * The '<em><b>315P00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>315P00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_315P00000X
	 * @model literal="315P00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _315P00000X_VALUE = 4;

	/**
	 * The '<em><b>310500000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>310500000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_310500000X
	 * @model literal="310500000X"
	 * @generated
	 * @ordered
	 */
	public static final int _310500000X_VALUE = 5;

	/**
	 * The '<em><b>313M00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>313M00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_313M00000X
	 * @model literal="313M00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _313M00000X_VALUE = 6;

	/**
	 * An array of all the '<em><b>Nursingand Custodial Care Facilities Provider Codes Member3</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final NursingandCustodialCareFacilitiesProviderCodesMember3[] VALUES_ARRAY =
		new NursingandCustodialCareFacilitiesProviderCodesMember3[] {
			_310000000X,
			_311500000X,
			_317400000X,
			_315D00000X,
			_315P00000X,
			_310500000X,
			_313M00000X,
		};

	/**
	 * A public read-only list of all the '<em><b>Nursingand Custodial Care Facilities Provider Codes Member3</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<NursingandCustodialCareFacilitiesProviderCodesMember3> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Nursingand Custodial Care Facilities Provider Codes Member3</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static NursingandCustodialCareFacilitiesProviderCodesMember3 get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			NursingandCustodialCareFacilitiesProviderCodesMember3 result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Nursingand Custodial Care Facilities Provider Codes Member3</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static NursingandCustodialCareFacilitiesProviderCodesMember3 getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			NursingandCustodialCareFacilitiesProviderCodesMember3 result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Nursingand Custodial Care Facilities Provider Codes Member3</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static NursingandCustodialCareFacilitiesProviderCodesMember3 get(int value) {
		switch (value) {
			case _310000000X_VALUE: return _310000000X;
			case _311500000X_VALUE: return _311500000X;
			case _317400000X_VALUE: return _317400000X;
			case _315D00000X_VALUE: return _315D00000X;
			case _315P00000X_VALUE: return _315P00000X;
			case _310500000X_VALUE: return _310500000X;
			case _313M00000X_VALUE: return _313M00000X;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private NursingandCustodialCareFacilitiesProviderCodesMember3(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //NursingandCustodialCareFacilitiesProviderCodesMember3
